<#import "/spring.ftl" as spring/>
<table cellpadding='0' id="tableSizeDis">

    <tr class="valTr">
        <td>
            <table>
                <tr>
                    <th class='tabTemp-jd'><@spring.message "myStyle_fit_size" />\<@spring.message "myStyle_fit_position" /></th>
                </tr>
				<#list StyleOptionList as styleOptionList>
                <tr>
                    <td class='tabTemp-xw'>${styleOptionList.propertyNameCn}</td>
                </tr>
				</#list>
            </table>
        </td>
        <td>
            <table id ='sizeTable' class ="fitTableVal">
                <tr>
                    <th style="width:70px"><@spring.message "myStyle_fit_public_errand" /></th>
                    <th style="width:100px"><@spring.message "myStyle_fit_marks" /></th>
                </tr>
            <#list styleFit as sf>
                <#if sf.styleSizeCd == "PUBLICERRAND_FITMAEKS">
                    <tr >
                        <td class='tab-xw' id = "publicErrand"><#if sf.publicErrand??>${sf.publicErrand}</#if></td>
                        <td class='tab-xw' id = "fitMarks"><#if sf.fitMarks??>${sf.fitMarks}</#if></td>
                        <input type ='hidden' class='publicErrand' name = 'sampleTypeDataList.sampleTypeList[0].styleFit.styleFitList[${sf_index}].publicErrand' value = '<#if sf.publicErrand??>${sf.publicErrand}</#if>'>
                        <input type ='hidden' class='fitMarks' name = 'sampleTypeDataList.sampleTypeList[0].styleFit.styleFitList[${sf_index}].fitMarks' value = '<#if sf.fitMarks??>${sf.fitMarks}</#if>'>
                        <input type ='hidden' name = 'sampleTypeDataList.sampleTypeList[0].styleFit.styleFitList[${sf_index}].itemCd' value = '${sf.itemCd}'>
                        <input type ='hidden' name = 'sampleTypeDataList.sampleTypeList[0].styleFit.styleFitList[${sf_index}].itemValue' value = '${sf.itemValue}'>
                    </tr>
                </#if>
            </#list>
                <input type ='hidden' class='styleGroup' name = 'sampleTypeDataList.sampleTypeList[0].styleGroup' value="PUBLICERRAND_FITMAEKS">
            </table>
        </td>
	<#list styleSizeList as ssl>
        <#if ssl.styleGroup != "PUBLICERRAND_FITMAEKS">
            <td>
                <table id ='sizeTable' class ="fitTableVal">
                    <tr>
                        <th class='tabTemp-jd' style="width:80px" >${dict.getDictName(ssl.styleSizeName)}</th>
                    </tr>
                    <#list styleFit as sf>
                        <#if sf.styleSizeCd?exists&&ssl.styleGroup?exists&&(ssl.styleGroup==sf.styleSizeCd)>
                            <#list StyleOptionList as styleOptionList>
                                <#if (sf.itemCd+sf.itemValue)==(styleOptionList.propertyCd+styleOptionList.propertyValue)>
                                    <tr >
                                        <td class='tab-xw' id = "fit">${sf.fitValue}</td>
                                        <input type ='hidden' name = 'sampleTypeDataList.sampleTypeList[${ssl_index+1}].styleFit.styleFitList[${styleOptionList_index}].itemCd' value = '${styleOptionList.propertyCd}'>
                                        <input type ='hidden' name = 'sampleTypeDataList.sampleTypeList[${ssl_index+1}].styleFit.styleFitList[${styleOptionList_index}].itemValue' value = '${styleOptionList.propertyValue}'>
                                        <input type ='hidden' class='fit' name = 'sampleTypeDataList.sampleTypeList[${ssl_index+1}].styleFit.styleFitList[${styleOptionList_index}].fitValue' value = '${sf.fitValue}' >
                                    </tr>
                                </#if>
                            </#list>
                        </#if>
                    </#list>
                    <tr class='none'>
                        <input type ='hidden' class='styleGroup' name = 'sampleTypeDataList.sampleTypeList[${ssl_index+1}].styleGroup' value = '${ssl.styleGroup}'>
                    </tr>
                </table>
            </td>
        </#if>
	</#list>
        <td class = "none" >
            <table id ='sizeTable' class ="fitTableVal">
                <tr>
                    <th class='tabTemp-jd' style="width:80px" ></th>
                </tr>
            <#list StyleOptionList as styleOptionList>
                <tr >
                    <td class='tab-xw' id = "fit"></td>
                    <input type ='hidden' name = 'sampleTypeDataList.sampleTypeList[tempIndex].styleFit.styleFitList[${styleOptionList_index}].itemCd' value = '${styleOptionList.propertyCd}' disabled='disabled'>
                    <input type ='hidden' name = 'sampleTypeDataList.sampleTypeList[tempIndex].styleFit.styleFitList[${styleOptionList_index}].itemValue' value = '${styleOptionList.propertyValue}' disabled='disabled'>
                    <input type ='hidden' class='fit' name = 'sampleTypeDataList.sampleTypeList[tempIndex].styleFit.styleFitList[${styleOptionList_index}].fitValue' value = '' disabled='disabled' >
                </tr>
            </#list>
                <tr class='none'>
                    <input type ='hidden' class='styleGroup' name = 'sampleTypeDataList.sampleTypeList[tempIndex].styleGroup' disabled='disabled'>
                </tr>
            </table>
        </td>
    </tr>
</table>
